import request from '@/utils/request'
export function getInstructionAnalysis(data) {
  return request({
    url: '/statistics/instruction',
    method: 'GET',
    params: data
  })
}
export function getTechnologicalTaskList(data) {
  return request({
    url: '/statistics/getTrainRunList',
    method: 'GET',
    params: data
  })
}
export function getTrainPageInfos(data) {
  return request({
    url: '/trainInfo/getPageInfos',
    method: 'GET',
    params: data
  })
}

export function deleteDevice(trainId) {
  return request({
    url: '/trainInfo/deleteTrainInfo',
    method: 'POST',
    params: { trainId: trainId }
  })
}

export function createOrUpdate(data) {
  return request({
    url: '/trainInfo/addOrUpdateTrainInfor',
    method: 'POST',
    data: data
  })
}

export function getWorkSummaryInfo(data) {
  return request({
    url: '/statistics/workSummary',
    method: 'GET',
    params: data
  })
}

export function getDcMonthlyReportAnalysisInfo(data) {
  console.log(data, 'dd2')

  return request({
    url: '/statistics/monthReport',
    method: 'GET',
    params: data
  })
}

export function getDcTaskPlanCashInfo(data) {
  return request({
    url: '/statistics/hungItem',
    method: 'GET',
    params: data
  })
}

export function getReportAnalysisInfo(data) {
  return request({
    url: '/statistics/transportSituation',
    method: 'GET',
    params: data
  })
}

export function getShiftOutput(data) {
  return request({
    url: '/statistics/shiftOutput',
    method: 'GET',
    params: data
  })
}

export function getShiftOutputSummary(data) {
  return request({
    url: '/statistics/shiftOutput/summary',
    method: 'GET',
    params: data
  })
}

export function getTechnologicalTask(data) {
  return request({
    url: '/statistics/trainWorkTime',
    method: 'GET',
    params: data
  })
}

export function getCapabilityUtilizationRate(data) {
  return request({
    url: '/statistics/usageDateList',
    method: 'GET',
    params: data
  })
}
export function getCapabilityTable(data){
  return request({
    url: '/statistics/deviceDateList',
    method: 'GET',
    params: data
  })
}
export function getLKJData(data) {
  return request({
    url: '/statistics/lkjData',
    method: 'GET',
    params: data
  })
}

export function getShiftPlan(data) {
  return request({
    url: '/statistics/shiftPlan',
    method: 'GET',
    params: data
  })
}

export function postShiftPlanDepart(data) {
  return request({
    url: '/statistics/depart',
    method: 'POST',
    params: data
  })
}

export function getZt(data) {
  return request({
    url: '/statistics/zt',
    method: 'GET',
    params: data
  })
}

export function getFreightTime(data) {
  return request({
    url: '/statistics/freight',
    method: 'GET',
    params: data
  })
}

export function postFreightTime(data) {
  return request({
    url: '/statistics/freight',
    method: 'POST',
    params: data
  })
}

export function getOneWeekAlarmsStatics() {
  return request({
    url: '/alarm/statistics/oneWeek',
    method: 'get'
  })
}

export function getOneDateAlarmsStatics() {
  return request({
    url: '/alarm/statistics/oneDate',
    method: 'get'
  })
}

export function getOneWeekWorkNumberStatics() {
  return request({
    url: '/statistics/workNumber',
    method: 'get'
  })
}

export function getDataWorkItemSummary(data) {
  return request({
    url: '/statistics/workItemSummary',
    method: 'get',
    params: data
  })
}

export function getDataJobTicket(data) {
  return request({
    url: '/statistics/getJobTicket',
    method: 'get',
    params: data
  })
}

export function getDataPieChartData(data) {
  return request({
    url: '/statistics/getPieChartData',
    method: 'get',
    params: data
  })
}
